package com.invoicerecognition.backend.controller.teacher;

import com.invoicerecognition.backend.service.teacher.AddStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class AddStudentController {

    @Autowired
    private AddStudentService addStudentService;

    @PostMapping("/api/teacher/add-student")
    public Map<String, String> addStudent(@RequestParam Map<String, String> data) {
        return addStudentService.addStudent(data);
    }

}
